package cn.wss.flowable.service;

import cn.wss.flowable.model.FlowableProcessInstance;

import java.util.Map;

public interface FlowableRuntimeService {

  // 流程启动
  FlowableProcessInstance start(Map<String, Object> variables);

  // 流程启动
  FlowableProcessInstance startByUser(String startUser, Map<String, Object> variables);

  // 结束流程
  void finish(String processInstanceId, String reason);
}
